<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>v-pre&v-cloak&v-once 实例</title>
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
  <h1>v-pre&v-cloak&v-once 实例</h1>
  <hr>
  <div id="app">
    
    <div v-pre>{{message}}</div>
    <div v-cloak>渲染完成后，才显示！</div>
    <div v-once>{{message}}</div>
    <div><input type="text" v-model="message"></div>
    <div>{{message}}</div>
    
  </div>
  <script type="text/javascript">
  var app = new Vue({
    el:'#app',
    data:{
      message:'hello world!'
    }
  })
  </script>
</body>
</html>